package com.fysports.web.api;

import com.fysports.framework.exception.FrameException;


/**
 * Class title: 移动设备类型
 * Describe:标识请求的设备来源是ios还是android
 * Created by konbluesky<br/>
 * Date : 15/11/27 下午3:47<br/>
 * Project : jdmdataServer<br/>
 */
public class APIException extends FrameException {
    private MobileType _mtype= MobileType.UNKNOW;

    public APIException() {
    }


    public APIException(String message) {
        super(message);
    }


    public APIException(Throwable cause) {
        super(cause);
    }


    public APIException(String message, Throwable cause) {
        super(message, cause);
    }


    public APIException(String msg,MobileType mtype,String url){
        super.setBizmsg(msg);
        this._mtype=mtype;
        super.setRequrl(url);
    }


    @Override public String toString() {
        return "APIException{" +
                "MobileType=" + _mtype +
                ",url=" + getRequrl() +
                ",bizmsg=" + getBizmsg() +
                '}';
    }
}
